package com.example.ruoyiakp.agricul.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 农资管理对象 agr_agricultural_supplies
 *
 * @author ruoyi
 * @date 2025-03-05
 */

public class AgrAgriculturalSupplies extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long suppId;

    /** 类型ID */
    @Excel(name = "类型ID")
    private Long agriId;

    /** 农资名称 */
    @Excel(name = "农资名称")
    private String suppName;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String suppFactory;

    /** 基础单位 */
    @Excel(name = "基础单位")
    private String suppUnit;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String suppImg;

    /** 生产许可证 */
    @Excel(name = "生产许可证")
    private String suppLicense;

    /** 使用说明 */
    @Excel(name = "使用说明")
    private String suppInstructions;

    private AgrAgriculturalType agriculturalType;

    public void setSuppId(Long suppId)
    {
        this.suppId = suppId;
    }

    public Long getSuppId()
    {
        return suppId;
    }
    public void setAgriId(Long agriId)
    {
        this.agriId = agriId;
    }

    public Long getAgriId()
    {
        return agriId;
    }
    public void setSuppName(String suppName)
    {
        this.suppName = suppName;
    }

    public String getSuppName()
    {
        return suppName;
    }
    public void setSuppFactory(String suppFactory)
    {
        this.suppFactory = suppFactory;
    }

    public String getSuppFactory()
    {
        return suppFactory;
    }
    public void setSuppUnit(String suppUnit)
    {
        this.suppUnit = suppUnit;
    }

    public String getSuppUnit()
    {
        return suppUnit;
    }
    public void setSuppImg(String suppImg)
    {
        this.suppImg = suppImg;
    }

    public String getSuppImg()
    {
        return suppImg;
    }
    public void setSuppLicense(String suppLicense)
    {
        this.suppLicense = suppLicense;
    }

    public String getSuppLicense()
    {
        return suppLicense;
    }
    public void setSuppInstructions(String suppInstructions)
    {
        this.suppInstructions = suppInstructions;
    }

    public String getSuppInstructions()
    {
        return suppInstructions;
    }


    public AgrAgriculturalType getAgriculturalType() {
        return agriculturalType;
    }

    public void setAgriculturalType(AgrAgriculturalType agriculturalType) {
        this.agriculturalType = agriculturalType;
    }


    private String agriName;

    // 其他属性的 getter 和 setter 方法...

    public String getAgriName() {
        return agriName;
    }

    public void setAgriName(String agriName) {
        this.agriName = agriName;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("suppId", getSuppId())
                .append("agriId", getAgriId())
                .append("suppName", getSuppName())
                .append("suppFactory", getSuppFactory())
                .append("suppUnit", getSuppUnit())
                .append("suppImg", getSuppImg())
                .append("suppLicense", getSuppLicense())
                .append("suppInstructions", getSuppInstructions())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("agriculturalType", getAgriculturalType()) // 添加这一行
                .append("agriName", getAgriName())
                .toString();
    }
}
